﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;
using System.Configuration;

namespace Cap03Encoding
{
    public class Encoding
    {
        public string ReadSQlValue()
        {
            string result = "";           
            
            var cs = ConfigurationManager.ConnectionStrings["dbcon"].ConnectionString; 
            var sql = new SqlConnection(cs);
            
            var cmd = new SqlCommand("", sql);
            sql.Open();
            var reader =  cmd.ExecuteReader(System.Data.CommandBehavior.SingleResult | System.Data.CommandBehavior.SingleRow);
            
            if (reader.Read())
            {

            
            }
            sql.Close();  
            return result; 
        }
    }
}
